import request from "../utils/request";

export const loginByIdService = (id, password,code,userType) => {
    const params = new URLSearchParams()
    params.append('id', id)
    params.append('password', password)
    params.append('code', code)
    params.append('userType', userType)
    return request.post("/login/loginById", params)
}

export const loginByEmailService = (email, code, userType) => {
    const params = new URLSearchParams()
    params.append('email', email)
    params.append('code', code)
    params.append('userType', userType)
    return request.post("/login/loginByEmail", params)
}